/**
 * Created by 蔺哲 on 2017/12/11.
 * 依赖jquery扩展和bootstrap datetimepicker
 */
$(".wt-datepicker-").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-start").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-end").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-start").click(function () {
    var val = $(this).parent().find(".wt-datepicker-end").val();
    $(this).datetimepicker("setEndDate",val);
});
$(".wt-datepicker-end").click(function () {
    var val = $(this).parent().find(".wt-datepicker-start").val();
    $(this).datetimepicker("setStartDate",val);
});
$(".wt-datepicker-start1").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-end1").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-start1").click(function () {
    var val = $(this).parent().next().find(".wt-datepicker-end1").val();
    $(this).datetimepicker("setEndDate",val);
});
$(".wt-datepicker-end1").click(function () {
    var val = $(this).parent().prev().find(".wt-datepicker-start1").val();
    $(this).datetimepicker("setStartDate",val);
});
$(".wt-datepicker-start2").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-end2").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-start2").click(function () {
    var val = $(this).parent().next().find(".wt-datepicker-end2").val();
    $(this).datetimepicker("setEndDate",val);
});
$(".wt-datepicker-end2").click(function () {
    var val = $(this).parent().prev().find(".wt-datepicker-start2").val();
    $(this).datetimepicker("setStartDate",val);
});
$(".wt-datepicker-start3").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-end3").datetimepicker({
    format: 'yyyy-mm-dd',
    minView:2,
    language: 'zh-CN',
    autoclose:true
});
$(".wt-datepicker-start3").click(function () {
    var val = $(this).parent().next().find(".wt-datepicker-end3").val();
    $(this).datetimepicker("setEndDate",val);
});
$(".wt-datepicker-end3").click(function () {
    var val = $(this).parent().prev().find(".wt-datepicker-start3").val();
    $(this).datetimepicker("setStartDate",val);
});